import {ajax} from '../utils/request'
import "../mock/user"

//登录请求
export function getUserLogin(data){
    return ajax({
        url:"/getUserLogin",
        method:'POST',
        data,
    })
}

//获取验证码请求
export function getsms(data){
    return ajax({
        url:'/getsms',
        method:'post',
        data
    })
}

//注册请求
export function userregister(data){
    return ajax({
        url:'/userregister',
        method:'post',
        data
    })
}
//修改密码
export function changepassword(data){
    return ajax({
        url:'/changepassword',
        method:'post',
        data
    })
}
export function changePhoneCode(data){
    return ajax({
        url:'/changephonecode',
        method:'post',
        data
    })
}
export function changePhone(data){
    return ajax({
        url:'/changephone',
        method:'post',
        data
    })
}